package team.hyznrj.studentsys.dao.mapper;

import org.apache.ibatis.annotations.Param;
import team.hyznrj.studentsys.dto.PowerDto;
import team.hyznrj.studentsys.dto.RoleDto;
import team.hyznrj.studentsys.entity.account.AccountInfo;

import java.util.List;
import java.util.Set;

/**
 * @author ReMidDream
 * @date 2018-05-03 13:43
 **/
public interface AccountInfoMapper {

    List<AccountInfo> findByCollegeMajorId (@Param("ids") Set<String> collegeMajorId);


    RoleDto findRoleDtoByRoleId (@Param("id") String roleId);

    List<RoleDto> findRoleDtoByRoleIds (@Param("ids") Set<String> roleId);

    List<RoleDto> findAllRoleDto (@Param("roleIds")List<String> roleId );

    List<String> findRoleId (@Param("roleLevelId")List<String> roleLovellId );




    PowerDto findPowerDtoByPowerId (@Param("id") String powerId);

    List<PowerDto> findPowerDtoByPowerIds (@Param("ids") Set<String> powerId);

    List<PowerDto> findAllPowerDto ();

}
